package com.ahoi.service;

import com.ahoi.dao.UserDao;
import com.ahoi.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: ahoi
 * @Date: 2018/4/28 17:19
 * @Description: 用户
 */
@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<User> list(User query) {
        return userDao.listData(query);
    }

}
